home *** CD-ROM | disk | FTP | other *** search
/ 404 Jogos / CLJG.iso / Aventura / MindScape.swf / scripts / frame_1 / PlaceObject2_203_31 / CLIPACTIONRECORD onClipEvent(enterFrame).as next >
Encoding:
Text File  |  2007-12-04  |  389 b   |  16 lines

  1. onClipEvent(enterFrame){
  2.    myPercentLoaded = int(_root.getBytesLoaded() / _root.getBytesTotal() * 100);
  3.    _root.bytesLoaded = int(_root.getBytesLoaded());
  4.    _root.bytesTotal = int(_root.getBytesTotal());
  5.    if(myPercentLoaded == 100)
  6.    {
  7.       status = "loaded!";
  8.       ystep = (-50 - _Y) / 5;
  9.       _Y = _Y + ystep;
  10.    }
  11.    if(_Y <= 20)
  12.    {
  13.       _root.play();
  14.    }
  15. }
  16.